<?php get_header(); ?>
<div id="roll">
<div title="回到顶部" id="roll_top"></div>
<!--  <div title="转到底部" id="fall"></div>--></div>
<div id="content">
<div class="main"><?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>
<ul <?php post_class(); ?> id="post-<?php the_ID(); ?>">
	<li>
	<h2><?php if(is_sticky()) : ?><i class="sticky sticky_ordinary"></i><?php else : ?><?php endif; ?>
	<a href="<?php the_permalink() ?>" rel="bookmark"
		title="详细阅读 <?php the_title_attribute(); ?>"><?php get_my_title();?></a><!--remove by caihuiji<span class="new"><?php include('includes/new.php'); ?></span>--></h2>
	<div class="post_date">
		<!--<span class="date_y"><?php the_time('Y') ?></span>-->
		<span class="date_m"><?php echo  the_time('m-d')?></span>
		<span class="date_d"><?php the_time('H:i') ?></span>
	</div>
	<div class="clear"></div>
	<div class="article">
	<div class="entry_post">
	
	<?php if (get_option('swt_thumbnail') == 'Display') { ?> 
		<?php if (get_option('swt_articlepic') == 'Display') { ?>
			<?php include('includes/articlepic.php'); ?> <?php { echo ''; } ?>
		 <?php } else { include(TEMPLATEPATH . '/includes/thumbnail.php'); } ?>
	<?php { echo ''; } ?><?php } else { } ?>

	<div class="article-content">
	
	<div class="info">
		<div class="categorise">分类：<?php the_category(', ') ?></div>
		<div class="autor"> 推荐人：<?php the_author() ?></div>
	</div>

	<?php
	if(is_singular()){the_content();}else{
		$pc=$post->post_content;
		$st=strip_tags(apply_filters('the_content',$pc));
		if(has_excerpt())
		the_excerpt();
		elseif(preg_match('/<!--more.*?-->/',$pc) || mb_strwidth($st) <100)
		the_content('');
		elseif(function_exists('mb_strimwidth')){
			echo'<p>'.mb_strimwidth($st,0,200, '...').'</p>';
		}
		
		else the_content();
	}?> <!--remove by caihuji <span class="more"><a href="<?php the_permalink() ?>" title="详细阅读 <?php the_title(); ?>" rel="bookmark">阅读全文</a></span></div>-->
	
	</div>
	
	<div class="score">
		<div class="rating">
			<span style="padding=0px;float:left;">评分：</span>
			<span style="padding=0px;float:left;"><?php if(function_exists(the_ratings)) { the_ratings(); } ?></span>
		</div>
		<div class="zhuanfa">
				<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare" data="{'text':' <?php the_title(); ?>','url':'<?php the_permalink() ?>',pic:''<?php the_post_thumbnail_src()?>}">
					<span class="postshare">分享到：</span>
					<a class="bds_tsina" title="分享到新浪微博" href="#"></a>
					<a class="bds_tqq" title="分享到腾讯微博" href="#"></a>
					<a class="bds_renren" title="分享到人人网" href="#"></a>
					<span class="bds_more"></span>
				</div>
		</div>
	</div>
	</div>
	<div class="clear"></div>

	</div>
	
	</li>
</ul>

<div class="clear"></div>
<?php endwhile; ?> <?php endif; ?>
<div class="navigation"><?php pagination($query_string); ?></div>
</div>
<?php get_sidebar(); ?> <?php get_footer(); ?>